console.log("hello world ts");
const json = JSON.parse("55");
// Most expect json to be an object, but it can be a string or a number like this example
console.log(typeof json);

function printStatusCode(code: string | number) {
    console.log(`My status code is ${code}.`)
}
printStatusCode(404);
printStatusCode('404');

function multiply(a: number, b: number) {
    return a * b;
}

console.log(multiply(2, 2));

const nameAgeMap: { [index: string]: number } = {};
nameAgeMap.Jack = 25;
nameAgeMap.John = 27;
nameAgeMap.Mike = 29;
console.log(nameAgeMap.Jack);
console.log(nameAgeMap.John);
console.log(nameAgeMap.Mike);

console.log(nameAgeMap)


